import React from 'react'
import PropTypes from 'prop-types'
export default function TestFun({name,age}) {
  TestFun.propTypes = {
    name: PropTypes.string.isRequired,
    age: PropTypes.number
}

TestFun.defaultProps = {
    age: 10000
}
  return (
    <div>
      <h3>Fun :{name}---{age}</h3>
    </div>
  )
}
